<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜事网-舆情中心</title>
<jsp:include page="includes.jsp" /><!-- 包含引用文件 -->
<%@ page language="java" contentType="text/html;charset=UTF-8"
	import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<script type="text/javascript" src="js/miaov.js"></script>
<link href="style/default/miaov_style.css" rel="stylesheet"
	type="text/css" />
</head>
<body>
	<div class="wrap">
		<!-- header:start -->
		<jsp:include page="banner.jsp" />
		<!-- header:end -->
		<div id="body">
			<div id="left" class="wrap">
				<h1 class="page">
					<form action="searchItems.do" method="post">
						<span>舆情中心</span> <span style="padding-left: 200px">
							从&nbsp;&nbsp;&nbsp;&nbsp; <s:if
								test="startDate==null||startDate.length()==0">
								<s:textfield name="startDate" value="2012-01-01" theme="simple" />
							</s:if> <s:else>
								<s:textfield name="startDate" theme="simple" />
							</s:else> 到&nbsp;&nbsp;&nbsp;&nbsp;<s:if
								test="endDate==null||endDate.length()==0">
								<s:textfield name="endDate" value="2013-01-01" theme="simple" />
							</s:if> <s:else>
								<s:textfield name="endDate" theme="simple" />
							</s:else> 媒体源:<select name="sourceId">
								<option value="0">全部</option>
								<s:iterator value="sources">
								<option value="${id}"><s:property value="name"/></option>
								</s:iterator>
						</select>
							<button type="submit">舆情搜索</button>
						</span>
					</form>
				</h1>
				<div class="main lside176">


					<jsp:include page="left_banner_my.jsp" />

					<div class="middle w804">
						<div id="left" class="w804">
							<div class="main">
								<jsp:include page="banner_my.jsp" />
								<div class="tabContent">





									<s:if test="items.size>0">
										<s:iterator value="items" status="st">
												<!-- TODO:这个是啥东东 -->

												<a href="itemLog.do?id=${id}&url=${url}"></a>
												<!-- 标题 -->
												<a href="addFavorite.do?id=${id}">收藏</a>
												<strong>
													<a href="itemDetail.do?itemId=${id}" style= 'color:black; text-decoration : underline'>
														<s:property value="title" />
													</a>
												</strong>
												
												<!-- 来源 -->
												<font style="color:grey"><s:if test="source!=null">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
												<s:property value="source" />
												</s:if>
												</font>

												<!-- IP -->
												<s:if test="ip!=null&&ip.length()>0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
													<s:property value="ip" />
												</s:if>
													
												<!-- 发布时间 -->
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<font style="color:grey;font-family:verdana"><s:property value="getPubTimeStr()" /></font>
													<s:if test="replyNum!=0">
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>回帖数:</strong>
													<s:property value="replyNum" />
												</s:if>
                                                	
												<s:if test="author!=null&&author.length()>0">
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
												<!-- 作者 -->
													<s:property value="author" />
												</s:if>
												
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<br /> <br />
												<s:if test="content.length()>500">
                                                 <!-- 摘要 -->
													<s:property value="content.substring(0,500)" />
												</s:if>
												<s:else>
												<!-- 摘要 -->
													<s:property value="content" />
												</s:else>
												<a href="${url}" target="_blank">【查看原文】</a> <br /> <br />
												
													
												<table style="border-collapse: collapse;width:600px;background-color:#eeeeee">
												<tr>
												<td style="border: 1px dashed #aaaaaa">
												<strong><font style="color:#0c609f">同类舆情</font></strong><br />
													<br />
													<table>
													<s:iterator value="itemId_items.get(#st.index)" status="simStatus" id="sims">
													
                                                    <tr>
                                                    <td><a href="itemDetail.do?itemId=${sims.id}" style= 'color:#0c609f; text-decoration : underline'>	
														<font style="color:#0c609f">
														<s:property value="itemId_items.get(#st.index).get(#simStatus.index).title" />
														</font>
													</a></td>
                                                    <td><font style="font-family:verdana;color:grey"><s:property value="itemId_items.get(#st.index).get(#simStatus.index).source" /></font></td>
                                                    <td><font style="font-family:verdana;color:grey"><s:property value="itemId_items.get(#st.index).get(#simStatus.index).getPubTimeStr()" /></font></td>
                                                    
														
													    </font>
													</tr>													
												</s:iterator></table>
												</td>
												</tr>
												</table>
												<br/>
												<hr size=0 style="color:#ffffff"/>
										</s:iterator>
										<br/>
									</s:if>


									<!-- 分页:start -->
									<div class="pagination">
										<s:if test="curPage!=1">
											<a href="listMyYuqing.do?curPage=1&pageSize=${pageSize}">首页</a>
											<a
												href="listMyYuqing.do?curPage=${curPage-1}&pageSize=${pageSize}">上一页</a>
										</s:if>
										<s:if test="curPage!=totalPage">
											<a
												href="listMyYuqing.do?curPage=${curPage+1}&pageSize=${pageSize}">下一页</a>
											<a
												href="listMyYuqing.do?curPage=${totalPage}&pageSize=${pageSize}">末页</a>
										</s:if>
										当前
										<s:property value="curPage" />
										/
										<s:property value="totalPage" />
										页
									</div>
									<!-- 分页:end -->


								</div>
							</div>
						</div>
					</div>
					<jsp:include page="footer.jsp" />
					<div class="clear"></div>
				</div>
			</div>
		</div>
	</div>

</body>
</html>
